package com.cdd.user.openFeign;

import com.cdd.role.vo.Pages;
import com.common.entity.Role;
import com.common.untils.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * TODO
 *
 * @author lenovo
 * @version 1.0
 * @since 2022-09-05  15:00:18
 */
@FeignClient(value = "caiduoduo-role")
public interface RoleFeign {
    //查询所有
    @PostMapping("/api/role/role/selectAllRole")
    public List<Role> ApiSelectRoleALl();
    //分页查询
    @PostMapping("/api/role/role/selectAllRoleName/{roleCurrentPage}/{rolePageSize}")
     CommonResult selectAllRoleName(@PathVariable Integer roleCurrentPage, @PathVariable Integer rolePageSize, @RequestBody Role role);

}
